import './assets/main.css';
import 'element-plus/theme-chalk/el-message.css';
import 'element-plus/theme-chalk/el-message-box.css';
import ElementPlus from 'element-plus';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import { createApp } from 'vue';
import { createPinia } from 'pinia';

import { parseTime } from '@/utils/neu.js';
import App from './App.vue';
import router from './router';
const pinia = createPinia();
const app = createApp(App);
app.config.globalProperties.parseTime = parseTime;

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}

app.use(pinia);
app.use(ElementPlus);
app.use(router);
app.mount('#app');
